﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Super.DomainService;

namespace Super.Web.Areas.Admin.Controllers
{
    public class CacheManageController : BaseController
    {
        //
        // GET: /Admin/CacheManage/

        public ActionResult Index()
        {
            return View();
        }

        public ActionResult Reset()
        {
            var action = Query.Get("action");
            switch (action)
            {
                case "fourmcategory":
                case "shopcategory":
                
                    break;

                case "setting":
                    CacheService.SettingCache.ClearCache();
                    CacheService.GetSetting();
                    break;

            }
            PageTip("缓存更新成功！");
            return Redirect("/Admin/CacheManage/Index");
        }
    }
}
